package net.maku.express.biza.mapper.collectexpress;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import net.maku.express.biza.controller.collectExpress.vo.GoodsDetailVO;
import net.maku.express.biza.controller.packagecollect.vo.PackageCollectOrderVO;
import net.maku.express.biza.pojo.collectexpress.CollectExpressSmallPojo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
* @author wenyingying
* @description 针对表【collect_express_small】的数据库操作Mapper
* @createDate 2023-11-22 15:07:12
* @Entity net.maku.express.biza.pojo.collectexpress.CollectExpressSmallPojo
*/
@Mapper
public interface CollectExpressSmallMapper extends BaseMapper<CollectExpressSmallPojo> {

    int insertSelective(CollectExpressSmallPojo collectExpressSmallPojo);

    int insertBatch(
            @Param("collectExpressSmallPojoCollection") Collection<CollectExpressSmallPojo> collectExpressSmallPojoCollection,@Param("cId")Long cId);

    int deleteByCollectExpressId(@Param("collectExpressId") Long collectExpressId);

    List<CollectExpressSmallPojo> selectByCollectExpressId(@Param("collectExpressId") Long collectExpressId);

    List<GoodsDetailVO> selectByCollectExpressId1(@Param("collectExpressId") Long collectExpressId);

    int updatePackageCollectIdById(@Param("packageCollectId") Long packageCollectId, @Param("ids") List<Long> id,@Param("state")Integer state);

    int updatePackageCollectIdById1( @Param("ids") List<Long> id,@Param("state")Integer state);

    List<Map<String,Object>> selectIds(@Param("ids")List<Long> ids);

    int updatePackageCollectIdByPackageCollectId(@Param("packageCollectId") Integer packageCollectId,
            @Param("oldPackageCollectId") Long oldPackageCollectId);

    int updateCollectStateByPackageCollectId(@Param("collectState") Integer collectState,
            @Param("packageCollectId") Integer packageCollectId);

    List<PackageCollectOrderVO> selectByCollectExpressId2(@Param("collectExpressIds") List<Long> collectExpressId);




}




